package com.fmc.passport.util;

import java.net.URL;

import org.json.JSONArray;

public class JsonUtil {
	
	public static JSONArray getJson(String url) throws Exception
	{
		JSONArray jsonArray = null;
		String content = URLContent.getContent(url);
		if( !content.equals("") )
		{
			jsonArray = new JSONArray(content);
		}
		return jsonArray;
	}
	
}
